package org.dromara.exam.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.exam.domain.dto.ProjectSetting;
import org.dromara.exam.domain.dto.TemplateSchema;
import org.dromara.exam.domain.entity.ExamProject;
import org.dromara.system.domain.vo.SysDeptVo;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 项目视图对象 exam_project
 *
 * @author xiyin321
 * @date 2024-05-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExamProject.class)
public class ExamProjectVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @ExcelProperty(value = "项目ID")
    private Long id;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String name;

    /**
     * 项目模式
     */
    @ExcelProperty(value = "项目模式")
    private TemplateSchema.QuestionType mode;

    private Long count;

    /**
     * 内容
     */
    @ExcelProperty(value = "项目内容")
    private TemplateSchema survey;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    private String status;

    /**
     * 项目配置
     */
    @ExcelProperty(value = "项目配置")
    private ProjectSetting setting;

    /**
     * 备注信息
     */
    @ExcelProperty(value = "备注信息")
    private String remark;

    private SysUserVo user;
    private SysDeptVo dept;
    private Long createBy;
    private Long createDept;
    private Date createTime;
}
